package com.yurui.anno.event;

import org.springframework.context.ApplicationEvent;

public class Demo2Event
        extends ApplicationEvent
//        extends DemoEvent
{

    private String gg;

//    public Demo2Event(Object source, String type) {
////        super(source,type);
//        this.gg = "demo2";
//    }

    public Demo2Event(Object source, String type) {
        super(source);
        this.gg = "demo2";
    }

    public String getGg() {
        return gg;
    }

    public void setGg(String gg) {
        this.gg = gg;
    }

    @Override
    public String toString() {
        return "Demo2Event{" +
                "gg='" + gg + '\'' +
//                ", source=" + source +
                '}';
    }
}
